

$("#enrollBtn").on("click", function () {
    // alert("456465")

    $.ajax({
        type: "post",
        url: "/user/enroll",
        data: {
            username: $("#username").val(),
            pwd: $("#pwd").val()
        },
        dataType: "json",
        success: (data) => {
            if (data.code == 0) {
                window.location.href = "../index.html"
                alert(data.msg)
            } else {
                alert(data.msg)
            }

        }

    })

})